#!/usr/env/bin python
# -*- coding: utf-8 -*-

# @Time    : 2020-11-02 9:36 上午
# @Author  : yangdy
# @File    : 2020-11-2.349.两个数组的交集
# @Software: PyCharmCE
from tools.my_methods import *


class Solution:
    def intersection(self, nums1: List[int], nums2: List[int]) -> List[int]:
        s1, s2 = set(nums1), set(nums2)
        return list(s1 - (s1 - s2))
